package org.jcnc.staffingsystem.stage;

import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class DepartmentInformationBox extends VBox {
    public DepartmentInformationBox() {

        TableView tableView=new TableView<>();


        TableColumn departmentNumber=new TableColumn<>("部门编号");
        TableColumn departmentName=new TableColumn<>("部门名称");
        TableColumn departmentIntroduction=new TableColumn<>("部门简介");

        departmentNumber.setPrefWidth(250);
        departmentName.setPrefWidth(250);
        departmentIntroduction.setPrefWidth(250);


        tableView.getColumns().addAll(departmentNumber,departmentName,departmentIntroduction);
        tableView.setPrefSize(30000,300000);
        tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);

        this.getChildren().addAll(tableView);
        this.setPadding(new Insets(20));
    }
}
